<%@page import="com.alibaba.fastjson.JSON"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.cqggrw.domain.*"%>
<%@ page import="com.cqggrw.service.*"%>
<%@ page import="com.cqggrw.service.impl.*"%>
<%
	request.setCharacterEncoding("utf-8");
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
	+ request.getServerName() + ":" + request.getServerPort()
	+ path + "/";
	AdServiceI adService = new AdServiceImpl();
	List<Ad> adList = adService.get();
	Map<Integer, Ad> adMap = new HashMap<Integer, Ad>();
	for(Ad ad : adList) {
		adMap.put(ad.getId(), ad);
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>公共人物网</title>
<link href="css/indexstyle.css" type="text/css" rel="stylesheet" />
<link href="css/common.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="jslib/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="jslib/shouye.js"></script>
<script type="text/javascript">
	function searchclick(domobj) {
		var text = $(domobj).prev().val();
		window.open("SearchPage.aspx?text=" + text);
	}

	function searchCheck() {
		var name = $('#nameId').val();
		if (name == '') {
			alert('请输入搜索关键字');
			return;
		}
		var i = 0;
		$('#searchFromId').submit();
	}

	function chakan() {
		var tp = $("input:checked").length;
		if (tp != 0) {
			window.open("VotePage.aspx?id=" + $("input:checked").val());
		} else {
			alert("对不起，请选择后在提交！！！");
			window.open("VotePage.aspx");
		}

	}
	function chakan1() {
		window.open("VotePage.aspx");
	}
	function clickButton(domobj) {
		if (event.keyCode == 13) {
			var text = $(domobj).val();
			window.open("SearchPage.aspx?text=" + text);
			return false;
		}
	}
	function shijian() {
		var mydate = new Date();
		$(".nav").text(mydate.toLocaleString());
	}
	function init() {
		shijian();
		setInterval(shijian, 1000);
	}
</script>
<style type="text/css">
#play {
	width: 258px;
	height: 217px;
	border: #ccc 1px solid;
}

#playBg {
	margin-top: 190px;
	z-index: 1;
	filter: alpha(opacity = 70);
	opacity: 0.7;
	width: 258px;
	position: absolute;
	height: 30px;
	background: #000;
}

#playText {
	margin-top: 190px;
	z-index: 2;
	padding-left: 10px;
	font-size: 11px;
	font-weight: bold;
	width: 130px;
	color: #fff;
	line-height: 30px;
	overflow: hidden;
	position: absolute;
	cursor: pointer;
}

#playNum {
	margin: 190px 5px 0 130px;
	z-index: 3;
	width: 120px;
	text-align: right;
	position: absolute;
	height: 25px;
}

#playNum a {
	margin: 0 2 5 2px;
	width: 15px;
	height: 30px;
	font-size: 11px;
	font-weight: bold;
	line-height: 20px;
	cursor: pointer;
	color: #000;
	padding: 0 5px;
	background: #D7D6D7;
	text-align: center
}

#playShow img {
	width: 258px;
	height: 217px;
	border: 0px;
}
</style>
</head>
<body onLoad="init();">
	<div class="top">
		<div class="top1">
			<table border="0" width="100%" cellspacing="0">
				<tr>
					<td><div id="dateDivId" style="width: 300px;"></div></td>
					<td>
						<div align="right">
							<img src="images/img2_02.gif" /> <a href="javascript:setHomepage();" class="a1">设为主页</a> <img src="images/img2_03.gif" /> <a href="javascript:addCookie();" class="a1">加入收藏</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>
					</td>
				</tr>
			</table>
			
		</div>
		<div class="top2">
			<div class="logo">
				<img src="images/gong1_11.gif" />
			</div>
			<div class="nav1">
				<a target="_blank" href="news.jsp?id=13"><span>焦点</span>·热门</a> <a target="_blank" href="news.jsp?id=4"><span>达人</span>·<font color="#FF0000">潮族</font> </a> <a target="_blank" href="news.jsp?id=28"><span>区县</span>·乡镇</a> <a target="_blank" href="news.jsp?id=26"><span>观点</span>·<font color="#FF0000">声音</font> </a> <a target="_blank" href="news.jsp?id=21"><span>文萃</span>·华章</a> <a target="_blank" href="news.jsp?id=6"><span>追寻</span>·记忆</a> <a target="_blank" href="news.jsp?id=12"><span>公共</span>·服务</a><br /> <a target="_blank" href="news.jsp?id=2"><span>关注</span>·点击</a> <a target="_blank" href="news.jsp?id=14"><span>教育</span>·科技</a> <a target="_blank" href="news.jsp?id=29"><span>图说</span>·天下</a> <a target="_blank" href="news.jsp?id=27"><span>交锋</span>·争鸣</a> <a target="_blank" href="news.jsp?id=25"><span>体育</span>·军事</a> <a target="_blank" href="news.jsp?id=23"><span>环球</span>·<font color="#FF0000">纵览</font> </a> <a target="_blank" href="news.jsp?id=10"><span>访谈</span>·对话</a>
			</div>
		</div>
		<div class="banner2">
			<img src="images/ggrww1_15.jpg" />
		</div>
	</div>
	<div class="menu">
		<div class="menu1">
			<a target="_blank" href="news.jsp?id=13" class="a1">焦点热门</a> | <a target="_blank" href="news.jsp?id=2" class="a1">关注点击</a> | <a target="_blank" href="news.jsp?id=23" class="a1">环球纵览</a> | <a target="_blank" href="news.jsp?id=3" class="a1">领导精英</a> | <a target="_blank" href="news.jsp?id=26" class="a1">观点声音</a>
		</div>
		<div class="form">
			<form action="SearchPage.jsp" id="searchFromId" method="post">
				<input type="hidden" name="page" value="1" /> <input type="text" name="name" id="nameId" class="search" value="" onkeypress="searchCheck();" /> <input type="image" src="images/gong1_18.gif" name="" class="ss" onclick="searchCheck()" />
			</form>
		</div>
	</div>
	<%
		NewsServiceI<News> service = new NewsServiceImpl();
			FlashserviceI flashService = new FlashserviceImpl();
			List<Flash> fList = flashService.getFlashImg(0);
	%>
	<div class="content">
		<div class="content1">
			<div class="cont1_l">
				<div>
					<div id="play">
						<ul style="padding-top:0px;">
							<li id="playBg"></li>
							<li id="playText"></li>
							<li id="playNum"><a>1</a> <a>2</a> <a>3</a></li>
							<li id="playShow">
								<%
									for(Flash flash : fList){
								%> <a href='<%=flash.getImgLink()%>' target="_blank" title='<%=flash.getName()%>'><img src='images/FlashImg/<%=flash.getImgUrl()%>' alt2='<%=flash.getName().length()<=10?flash.getName():flash.getName().substring(0, 10)%>'> </a> <%
 	}
 %>
							</li>
						</ul>
					</div>
					<script type=text/javascript>
						function setDivDate() {
							var str = '<font size="2">&nbsp;&nbsp;'+getDatetime()+'</font>';
							$('#dateDivId').html(str);
							setTimeout("setDivDate()", 1000);
						}
						var t = n = 0, count = $("#playShow a").size();
						$(function() {
							$("#playShow a:not(:first-child)").hide();
							$("#playText").html($("#playShow a:first-child").find("img").attr('alt2'));
							$("#playNum a:first").css({
								"background" : "#FFD116",
								'color' : '#A8471C'
							});
							$("#playText").click(function() {
								window.open($("#playShow a:first-child").attr('href'), "_blank");
							});
							$("#playNum a").click(function() {
								var i = $(this).text() - 1;
								n = i;
								if (i >= count)
									return;
								$("#playText").html($("#playShow a").eq(i).find("img").attr('alt2'));
								$("#playText").unbind().click(function() {
									window.open($("#playShow a").eq(i).attr('href'), "_blank");
								});
								$("#playShow a").filter(":visible").hide().parent().children().eq(i).fadeIn(1200);
								$(this).css({
									"background" : "#FFD116",
									'color' : '#A8471C'
								}).siblings().css({
									"background" : "#D7D6D7",
									'color' : '#000'
								});
							});
							t = setInterval("showAuto()", 3000);
							$("#play").hover(function() {
								clearInterval(t);
							}, function() {
								t = setInterval("showAuto()", 3000);
							});
						});
						setDivDate();
						function showAuto() {
							n = n >= (count - 1) ? 0 : ++n;
							$("#playNum a").eq(n).trigger('click');
						}
					</script>
				</div>
				<div class="grass">
					<ul class="grassbg">
						<%
							List<News> newsList = service.getByTypeId(2);
							int i2 = 1;
							for (News news : newsList) {
								if (i2 > 10)
									break;
						%>
						<li><a target="_blank" href='news/news.jsp?id=<%=news.getId()%>' title='<%=news.getName()%>'><%=news.getName().length() <= 15 ? news.getName() : news.getName().substring(0, 15)%></a> <%
 	i2++;
 	}
 %>
						
					</ul>
				</div>
				<div class="ad">
					<a target="_blank" href="<%=adMap.get(4).getLink()%>"><img src="images/AdImg/<%=adMap.get(4).getImgName()%>" /> </a>
				</div>
				<div class="weib">
					<div class="weibtitle">
						<span class="font_title">微语</span>博议 <a target="_blank" href="MorePage.jsp?id=22" class="a3"><font class="font">more</font> </a>
					</div>
					<div class="weibcont">
						<ul>
							<%
								List<News> newsList22 = service.getByTypeId(22);
								for (int i = 0; i < 5 && i < newsList22.size(); i++) {
							%>
							<li><a target="_blank" href='news/news.jsp?id=<%=newsList22.get(i).getId()%>' title='<%=newsList22.get(i).getName()%>'><%=newsList22.get(i).getName().length() <= 15 ? newsList22.get(i).getName() : newsList22.get(i).getName().substring(0, 15)%></a></li>
							<%
								}
							%>
						</ul>
					</div>
				</div>
			</div>
			<div class="cont1_m">
				<div class="news">
					<div class="newstitle">
						<span class="font_title">焦点</span>新闻 <a target="_blank" href="MorePage.jsp?id=13" class="a3"><font class="font">more</font> </a>
					</div>
					<%
						List<News> newsList13 = service.getByTypeId(13);
					%>
					<div class="newsinfor">
						<h2>
							<a target="_blank" href='news/news.jsp?id=<%=newsList13.get(0).getId()%>' title='<%=newsList13.get(0).getName()%>'><%=newsList13.get(0).getName().length()<=20?newsList13.get(0).getName():newsList13.get(0).getName().substring(0, 20)%></a>
						</h2>
						<p class="p1"><%=newsList13.get(0).getTxtContent().length() <= 85 ? newsList13.get(0).getTxtContent() : newsList13.get(0).getTxtContent().substring(0, 85)%>
						</p>
					</div>
					<div class="newsinfor">
						<h2>
							<a target="_blank" href='news/news.jsp?id=<%=newsList13.get(1).getId()%>' title='<%=newsList13.get(1).getName()%>'><%=newsList13.get(1).getName().length()<=20?newsList13.get(1).getName():newsList13.get(1).getName().substring(0, 20)%></a>
						</h2>
						<p class="p1"><%=newsList13.get(1).getTxtContent().length() <= 85 ? newsList13.get(1).getTxtContent() : newsList13.get(1).getTxtContent().substring(0, 85)+"..."%>
						</p>
					</div>
					<div class="newscont">
						<ul>
							<%
								for (int i = 2; i < 11 && i < newsList13.size(); i++) {
							%>
							<li><a target="_blank" href='news/news.jsp?id=<%=newsList13.get(i).getId()%>' title='<%=newsList13.get(i).getName()%>'><%=newsList13.get(i).getName().length() <= 25 ? newsList13.get(i).getName() : newsList13.get(i).getName().substring(0, 25)%></a></li>
							<%
								}
							%>
						</ul>
					</div>
				</div>
				<div class="world">
					<div class="newstitle">
						<span class="font_title">环球</span>纵览 <a target="_blank" href="MorePage.jsp?id=23" class="a3"><font class="font">more</font> </a>
					</div>
					<%
						List<News> newsList23 = service.getByTypeId(23);
					%>
					<p class="p">
						<a target="_blank" href='news/news.jsp?id=<%=newsList23.get(0).getId()%>' title='<%=newsList23.get(0).getName()%>'> <%=newsList23.get(0).getName()%> </a>
					</p>
					<div class="wordinfor">
						<a target="_blank" href='news/news.jsp?id=<%=newsList23.get(0).getId()%>' title='<%=newsList23.get(0).getName()%>' title='<%=newsList23.get(0).getName()%>'><img src='images/img/<%=newsList23.get(0).getFilename()%>' border="0" width="176px" height="115px" /> </a>
						<p class="p2">
							<a target="_blank" href='news/news.jsp?id=<%=newsList23.get(0).getId()%>' title='<%=newsList23.get(0).getName()%>' title='<%=newsList23.get(0).getName()%>'><%=newsList23.get(0).getTxtContent().length() <= 45 ? newsList23.get(0).getTxtContent() : newsList23.get(0).getTxtContent().substring(0, 45)%>...</a>
						</p>
					</div>
					<div class="clear"></div>
					<div class="newscont">
						<ul>
							<%
								for (int i = 1; i <= 5 && i < newsList.size(); i++) {
							%>
							<li><a target="_blank" href='news/news.jsp?id=<%=newsList23.get(i).getId()%>' title='<%=newsList23.get(i).getName()%>'> <%=newsList23.get(i).getName()%> </a></li>
							<%
								}
							%>
						</ul>
					</div>
				</div>
			</div>
			<div class="cont1_r">
				<div class="act">
					<div class="cont1r_title">
						<span class="font_title">活动</span>专题 <a target="_blank" href="MorePage.jsp?id=19" class="a3"><font class="font">more</font> </a>
					</div>
					<%
						List<News> newsList19 = service.getByTypeId(19);
						for (int i = 0; i < 4 && i < newsList19.size(); i++) {
					%>
					<div class="activity">
						<a target="_blank" href="news/news.jsp?id=<%=newsList19.get(i).getId()%>" title='<%=newsList19.get(i).getName()%>'><img src='images/img/<%=newsList19.get(i).getFilename()%>' width="145px" height="100px" /> </a>
						<p class="p3">
							<a target="_blank" href="news/news.jsp?id=<%=newsList19.get(i).getId()%>"><%=newsList19.get(i).getTxtContent().length() <= 53 ? newsList19.get(i).getTxtContent() : newsList19.get(i).getTxtContent().substring(0, 53)+"..."%></a>
						</p>
					</div>
					<%
						}
					%>
				</div>
					<div class="world">
						<div class="cont1r_title">
							<span class="font_title">草根</span>身边 <a target="_blank" href="MorePage.jsp?id=5" class="a3"><font class="font">more</font> </a>
						</div>
						<%
							List<News> newsList5 = service.getByTypeId(5);
						%>
						<p class="p">
							<a target="_blank" href='news/news.jsp?id=<%=newsList5.get(0).getId()%>' title='<%=newsList5.get(0).getName()%>'><%=newsList5.get(0).getName()%></a>
						</p>
						<div class="wordinfor">
							<a target="_blank" href='news/news.jsp?id=<%=newsList5.get(0).getId()%>' title='<%=newsList5.get(0).getName()%>'><img src='images/img/<%=newsList5.get(0).getFilename()%>' border="0" width="176px" height="115px" /> </a>
							<p class="p4">
								<a target="_blank" href="news/news.jsp?id=<%=newsList5.get(0).getId()%>"><%=newsList5.get(0).getTxtContent().length() <= 45 ? newsList5.get(0).getTxtContent() : newsList5.get(0).getTxtContent().substring(0, 45)%>...</a>
							</p>
						</div>
						<div class="clear"></div>
						<div class="newscont">
							<ul>
								<%
									for (int i = 1; i <= 5 && i <= newsList5.size(); i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList5.get(i).getId()%>' title='<%=newsList5.get(i).getName()%>'> <%=newsList5.get(i).getName().length() <= 20 ? newsList5.get(i).getName() : newsList5.get(i).getName().substring(0, 20)%> </a></li>
								<%
									}
								%>
							</ul>
						</div>
					</div>
			</div>
			<div class="clear"></div>
			<div class="banner">
				<a target="_blank" href="<%=adMap.get(1).getLink()%>"><img src="images/AdImg/<%=adMap.get(1).getImgName()%>" /> </a>
			</div>
			<div class="content2">
				<div class="cont1_l">
					<div class="report">
						<div class="report_title">
							交锋争鸣 <a target="_blank" href="MorePage.jsp?id=26" class="a1">更多>></a>
						</div>
						<div class="report_cont">
							<ul style="padding-left:16px;">
								<%
									List<News> newsList26 = service.getByTypeId(27);
									for (int i = 0; i < 5 && i < newsList26.size(); i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList26.get(i).getId()%>' title='<%=newsList26.get(i).getName()%>'><%=newsList26.get(i).getName().length() <= 15 ? newsList26.get(i).getName() : newsList26.get(i).getName().substring(0, 15)%></a></li>
								<%
									}
								%>
							</ul>
						</div>
					</div>
					<div class="souds">
						<div class="weibtitle">
							<span class="font_title">观点</span>声音 <a target="_blank" href="MorePage.jsp?id=27" class="a3"><font class="font">more</font> </a>
						</div>
						<div class="soudscont">
							<ul>
								<%
									List<News> newsList27 = service.getByTypeId(26);
									for (int i = 0; i < 5 && i < newsList27.size(); i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList27.get(i).getId()%>' title='<%=newsList27.get(i).getName()%>'><%=newsList27.get(i).getName().length() <= 16 ? newsList27.get(i).getName() : newsList27.get(i).getName().substring(0, 16)%></a> <%
 	}
 %>
								
							</ul>
						</div>
					</div>
					<div class="ad">
						<a target="_blank" href="<%=adMap.get(5).getLink()%>"><img src="images/AdImg/<%=adMap.get(5).getImgName()%>" /> </a>
					</div>
					<div>
						<a target="_blank" href="<%=adMap.get(6).getLink()%>"><img src="images/AdImg/<%=adMap.get(6).getImgName()%>" /> </a>
					</div>
				</div>
				<div class="cont1_m">
					<div class="world">
						<div class="newstitle">
							<span class="font_title">英才</span>新秀 <font class="font"><a target="_blank" href="MorePage.jsp?id=17" class="a3">more</a> </font>
						</div>
						<%
							List<News> newsList17 = service.getByTypeId(17);
							for (int i = 0; i < 2 && i < newsList17.size(); i++) {
						%>
						<div class="excellence">
							<p class="p">
								<a target="_blank" href='news/news.jsp?id=<%=newsList17.get(i).getId()%>' title='<%=newsList17.get(i).getName()%>'><%=newsList17.get(i).getName()%></a>
							</p>
							<div class="wordinfor">
								<a target="_blank" href='news/news.jsp?id=<%=newsList17.get(i).getId()%>' title='<%=newsList17.get(i).getName()%>'><img src='images/img/<%=newsList17.get(i).getFilename()%>' width="115" height="110" alt="" style='border:0px;' /> </a>
								<p class="p5">
									<a target="_blank" href='news/news.jsp?id=<%=newsList17.get(i).getId()%>'><%=newsList17.get(i).getTxtContent().length() <= 83 ? newsList17.get(i).getTxtContent() : newsList17.get(i).getTxtContent().substring(0, 83)%>...</a>
								</p>
							</div>
						</div>
						<%
							}
						%>
					</div>
					<div class="master">
						<div class="newstitle">
							<span class="font_title">对话</span>访谈 <a target="_blank" href="MorePage.jsp?id=10" class="a3"><font class="font">more</font> </a>
						</div>
						<div class="newsinfor">
							<%
								List<News> newsList10 = service.getByTypeId(10);
							%>
							<h2>
								<a target="_blank" href='news/news.jsp?id=<%=newsList10.get(0).getId()%>' title='<%=newsList10.get(0).getName()%>'><%=newsList10.get(0).getName()%></a>
							</h2>
							<p class="p1"><%=newsList10.get(0).getTxtContent().length() <= 85 ? newsList10.get(0).getTxtContent() : newsList10.get(0).getTxtContent().substring(0, 85)%>...
							</p>
						</div>
						<div class="mastercont">
							<ul>
								<%
									for (int i = 1; i < newsList10.size() && i <= 5; i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList10.get(i).getId()%>' title='<%=newsList10.get(i).getName()%>'> <%=newsList10.get(i).getName()%> </a></li>
								<%
									}
								%>
							</ul>
						</div>
					</div>
				</div>
				<div class="cont1_r">
					<div class="world">
						<div class="cont1r_title">
							<%
								List<News> newsList18 = service.getByTypeId(18);
							%>
							<span class="font_title">明星</span>丽人 <a target="_blank" href="MorePage.jsp?id=18" class="a3"><font class="font">more</font> </a>
						</div>
						<p class="p">
							<a target="_blank" href='news/news.jsp?id=<%=newsList18.get(0).getId()%>' title='<%=newsList18.get(0).getName()%>'><%=newsList18.get(0).getName().length()<=20?newsList18.get(0).getName():newsList18.get(0).getName().substring(0, 20)%></a>
						</p>
						<div class="wordinfor">
							<a target="_blank" href='news/news.jsp?id=<%=newsList18.get(0).getId()%>' title='<%=newsList18.get(0).getName()%>'><img src='images/img/<%=newsList18.get(0).getFilename()%>' border="0" width="176px" height="115px" /> </a>
							<p class="p4">
								<a target="_blank" href="news/news.jsp?id=<%=newsList18.get(0).getId()%>"><%=newsList18.get(0).getTxtContent().length() <= 45 ? newsList18.get(0).getTxtContent() : newsList18.get(0).getTxtContent().substring(0, 45)%>...</a>
							</p>
						</div>
						<div class="clear"></div>
						<div class="click">
							<ul>
								<%
									for (int i = 1; i <= 6 && i < newsList18.size(); i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList18.get(i).getId()%>' title='<%=newsList18.get(i).getName()%>'> <%=newsList18.get(i).getName().length() <= 20 ? newsList18.get(i).getName() : newsList18.get(i).getName().substring(0, 20)%> </a> <%
 	}
 %>
								
							</ul>
						</div>
					</div>
					<div class="life">
						<div class="cont1r_title">
							<span class="font_title">领导</span>精英 <a target="_blank" href="MorePage.jsp?id=3" class="a3"><font class="font">more</font> </a>
						</div>
						<%
							List<News> newsList3 = service.getByTypeId(3);
						%>
						<div class="newsinfor">
							<h2>
								<a target="_blank" href='news/news.jsp?id=<%=newsList3.get(0).getId()%>' title='<%=newsList3.get(0).getName()%>'><%=newsList3.get(0).getName().length()<=20 ? newsList3.get(0).getName() : newsList3.get(0).getName().substring(0, 20)%></a>
							</h2>
							<p class="p1"><%=newsList3.get(0).getTxtContent().length() <= 75 ? newsList3.get(0).getTxtContent() : newsList3.get(0).getTxtContent().substring(0, 75)%>...
							</p>
						</div>
						<div class="mastercont">
							<ul>
								<%
									for (int i = 1; i <= 5 && i < newsList3.size(); i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList3.get(i).getId()%>' title='<%=newsList3.get(i).getName()%>'> <%=newsList3.get(i).getName()%> </a></li>
								<%
									}
								%>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<div class="clear"></div>
			<div class="ad1">
				<a target="_blank" href="<%=adMap.get(2).getLink()%>"><img src="images/AdImg/<%=adMap.get(2).getImgName()%>" /> </a>
			</div>
			<div class="magazine">
				<div class="maga_title">
					<img src="images/gong1_92.gif" /><span><a target="_blank" href="MagazinePage.jsp" class="a3">更多>></a> </span>
				</div>
				<div class="maga_cont">
				<%
					BookServiceI bookService = new BookServiceImpl();
					Book book = new Book();
					book.setPage(1);
					book.setRows(3);
					List<Book> bookList = bookService.getList(book);
					for(int i = 0; i < 3 && i < bookList.size(); i++) {
						%>
					<div class="maga_cont<%=i==2?2:1 %>">
						<div class="maga_img">
							<a target="_blank" href='Magazine.jsp?bookImg=<%=bookList.get(i).getFmImgFileName()%>'><img src='images/bookImg/<%=bookList.get(i).getFmImgFileName() %>.jpg' border="0" width="108px" height="142px;" /> </a>
						</div>
						<div class="maga_info">
							<h3>
								<a target="_blank" href='Magazine.jsp?bookImg=<%=bookList.get(i).getFmImgFileName()%>'><%=bookList.get(i).getName()%></a>
							</h3>
							<h3><%=bookList.get(i).getAddDate()%></h3>
							<h3>封面人物：<%=bookList.get(i).getPeopleName()%></h3>
							<span><%=bookList.get(i).getDes().length()<=24?bookList.get(i).getDes():bookList.get(i).getDes().substring(0, 24)+"..."%></span>
						</div>
					</div>
						<%
					}
				%>
				</div>
			</div>
			<div class="content3">
				<div class="cont1_l">
					<div class="release">
						<div class="weibtitle">
							<span class="font_title">信息</span>发布 <a target="_blank" href="MorePage.jsp?id=11" class="a3"><font class="font">more</font> </a>
						</div>
						<div class="weibcont">
							<ul>
								<%
									List<News> newsList11 = service.getByTypeId(11);
									for (int i = 0; i < 6 && i < newsList11.size(); i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList11.get(i).getId()%>' title='<%=newsList11.get(i).getName()%>'><%=newsList11.get(i).getName().length() <= 16 ? newsList11.get(i).getName() : newsList11.get(i).getName().substring(0, 16)%></a> <%
 	}
 %>
								
							</ul>
						</div>
					</div>
					<div>
						<a target="_blank" href="<%=adMap.get(7).getLink()%>"><img src="images/AdImg/<%=adMap.get(7).getImgName()%>" /> </a>
					</div>
					<div class="ad">
						<a target="_blank" href="<%=adMap.get(9).getLink()%>"><img src="images/AdImg/<%=adMap.get(9).getImgName()%>" /> </a>
					</div>
					<div>
						<a target="_blank" href="<%=adMap.get(8).getLink()%>"><img src="images/AdImg/<%=adMap.get(8).getImgName()%>" /> </a>
					</div>
				</div>
				<div class="cont1_m">
					<div class="world">
						<div class="newstitle">
							<span class="font_title">体育</span>军事 <a target="_blank" href="MorePage.jsp?id=25" class="a3"><font class="font">more</font> </a>
						</div>
						<%
							List<News> newsList25 = service.getByTypeId(25);
						%>
						<p class="p">
							<a target="_blank" href='news/news.jsp?id=<%=newsList25.get(0).getId()%>' title='<%=newsList25.get(0).getName()%>'> <%=newsList25.get(0).getName()%> </a>
						</p>
						<div class="wordinfor">
							<a target="_blank" href='news/news.jsp?id=<%=newsList25.get(0).getId()%>' title='<%=newsList25.get(0).getName()%>'><img src='images/img/<%=newsList25.get(0).getFilename()%>' border="0" width="176px" height="115px" /> </a>
							<p class="p2">
								<a target="_blank" href='news/news.jsp?id=<%=newsList25.get(0).getId()%>' title='<%=newsList25.get(0).getName()%>'><%=newsList25.get(0).getTxtContent().length() <= 60 ? newsList25.get(0).getTxtContent() : newsList25.get(0).getTxtContent().substring(0, 60)%>...</a>
							</p>
						</div>
						<div class="clear"></div>
						<div class="newscont">
							<ul>
								<%
									for (int i = 1; i < newsList25.size() && i <= 5; i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList25.get(i).getId()%>' title='<%=newsList25.get(i).getName()%>'> <%=newsList25.get(i).getName().length() <= 24 ? newsList25.get(i).getName() : newsList25.get(i).getName().substring(0, 24)%> </a> <%
 	}
 %>
								
							</ul>
						</div>
					</div>
					<div class="master">
						<div class="newstitle">
							<span class="font_title">生活</span>汇点 <a target="_blank" href="MorePage.jsp?id=24" class="a3"><font class="font">more</font> </a>
						</div>
						<%
							List<News> newsList24 = service.getByTypeId(24);
						%>
						<div class="newsinfor">
							<h2>
								<a target="_blank" href='news/news.jsp?id=<%=newsList24.get(0).getId()%>' title='<%=newsList24.get(0).getName()%>'><%=newsList24.get(0).getName()%></a>
							</h2>
							<p class="p1"><%=newsList24.get(0).getTxtContent().length() <= 50 ? newsList24.get(0).getTxtContent() : newsList24.get(0).getTxtContent().substring(0, 50)%>...
						</div>
						<div class="mastercont">
							<ul>
								<%
									for (int i = 1; i < newsList24.size() && i <= 5; i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList24.get(i).getId()%>' title='<%=newsList24.get(i).getName()%>'> <%=newsList24.get(i).getName()%> </a></li>
								<%
									}
								%>
							</ul>
						</div>
					</div>
				</div>
				<div class="cont1_r">
					<div class="world">
						<div class="cont1r_title">
							<span class="font_title">区县</span>乡镇 <a target="_blank" href="MorePage.jsp?id=28" class="a3"><font class="font">more</font> </a>
						</div>
						<%
							List<News> newsList28 = service.getByTypeId(28);
						%>
						<p class="p">
							<a target="_blank" href='news/news.jsp?id=<%=newsList28.get(0).getId()%>' title='<%=newsList28.get(0).getName()%>'> <%=newsList28.get(0).getName()%> </a>
						</p>
						<div class="wordinfor">
							<a target="_blank" href='news/news.jsp?id=<%=newsList28.get(0).getId()%>' title='<%=newsList28.get(0).getName()%>'><img src='images/img/<%=newsList28.get(0).getFilename()%>' border="0" width="176px" height="115px" /> </a>
							<p class="p4">
								<a target="_blank" href='news/news.jsp?id=<%=newsList28.get(0).getId()%>' title='<%=newsList28.get(0).getName()%>'><%=newsList28.get(0).getTxtContent().length() <= 45 ? newsList28.get(0).getTxtContent() : newsList28.get(0).getTxtContent().substring(0, 45)%>...</a>
							</p>
						</div>
						<div class="clear"></div>
						<div class="newscont">
							<ul>
								<%
									for (int i = 1; i <= 5 && i < newsList28.size(); i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList28.get(i).getId()%>' title='<%=newsList28.get(i).getName()%>'> <%=newsList28.get(i).getName().length() <= 22 ? newsList28.get(i).getName() : newsList28.get(i).getName().substring(0, 22)%></a></li>
								<%
									}
								%>
							</ul>
						</div>
					</div>
					<div class="dialogue">
						<div class="cont1r_title">
							<span class="font_title">达人</span>潮流 <a target="_blank" href="MorePage.jsp?id=4" class="a3"><font class="font">more</font> </a>
						</div>
						<%
							List<News> newsList4 = service.getByTypeId(4);
						%>
						<div class="newsinfor">
							<h2>
								<a target="_blank" href='news/news.jsp?id=<%=newsList4.get(0).getId()%>' title='<%=newsList4.get(0).getName()%>'><%=newsList4.get(0).getName().length()<20?newsList4.get(0).getName():newsList4.get(0).getName().substring(0, 20)%></a>
							</h2>
							<p class="p1"><%=newsList4.get(0).getTxtContent().length() <= 50 ? newsList4.get(0).getTxtContent() : newsList4.get(0).getTxtContent().substring(0, 50)%>...
							</p>
						</div>
						<div class="mastercont">
							<ul>
								<%
									for (int i = 1; i <= 5 && i < newsList4.size(); i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList4.get(i).getId()%>' title='<%=newsList4.get(i).getName()%>'> <%=newsList4.get(i).getName().length() <= 24 ? newsList4.get(i).getName() : newsList4.get(i).getName().substring(0, 24)%> </a></li>
								<%
									}
								%>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<div class="banner1">
				<a target="_blank" href="<%=adMap.get(3).getLink()%>"><img src="images/AdImg/<%=adMap.get(3).getImgName()%>" /> </a>
			</div>
			<div class="content4">
				<div class="cont1_l">
					<div class="banner">
						<a target="_blank" href="<%=adMap.get(10).getLink()%>"><img src="images/AdImg/<%=adMap.get(10).getImgName()%>" /> </a>
					</div>
					<div class="digest">
						<div class="report_title">
							文萃华章 <a target="_blank" href="MorePage.jsp?id=21" class="a1">more</a>
						</div>
						<div class="word">
							<ul>
								<%
									List<News> newsList21 = service.getByTypeId(21);
									for (int i = 0; i < 6 && i < newsList21.size(); i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList21.get(i).getId()%>' title='<%=newsList21.get(i).getName()%>'><%=newsList21.get(i).getName().length() <= 16 ? newsList21.get(i).getName() : newsList21.get(i).getName().substring(0, 16)%></a></li>
								<%
									}
								%>
							</ul>
						</div>
					</div>
					<div>
						<a target="_blank" href="<%=adMap.get(11).getLink()%>"><img src="images/AdImg/<%=adMap.get(11).getImgName()%>" /> </a>
					</div>
				</div>
				<div class="cont1_m">
					<div class="master">
						<div class="newstitle">
							<span class="font_title">公共</span>服务 <a target="_blank" href="MorePage.jsp?id=12" class="a3"><font class="font">more</font> </a>
						</div>
						<%
							List<News> newsList12 = service.getByTypeId(12);
						%>
						<div class="newsinfor">
							<h2>
								<a target="_blank" href='news/news.jsp?id=<%=newsList12.get(0).getId()%>' title='<%=newsList12.get(0).getName()%>'><%=newsList12.get(0).getName()%></a>
							</h2>
							<p class="p1"><%=newsList12.get(0).getTxtContent().length() <= 80 ? newsList12.get(0).getTxtContent() : newsList12.get(0).getTxtContent().substring(0, 80)%>...
							</p>
						</div>
						<div class="mastercont">
							<ul>
								<%
									for (int i = 1; i <= 5 && i < newsList12.size(); i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList12.get(i).getId()%>' title='<%=newsList12.get(i).getName()%>'> <%=newsList12.get(i).getName().length() <= 24 ? newsList12.get(i).getName() : newsList12.get(i).getName().substring(0, 24)%> </a></li>
								<%
									}
								%>
							</ul>
						</div>
					</div>
					<div class="master">
						<div class="newstitle">
							<span class="font_title">追寻</span>记忆 <a target="_blank" href="MorePage.jsp?id=6" class="a3"><font class="font">more</font> </a>
						</div>
						<%
							List<News> newsList6 = service.getByTypeId(6);
						%>
						<div class="newsinfor">
							<h2>
								<a target="_blank" href='news/news.jsp?id=<%=newsList6.get(0).getId()%>' title='<%=newsList6.get(0).getName()%>'><%=newsList6.get(0).getName()%></a>
							</h2>
							<p class="p1"><%=newsList6.get(0).getTxtContent().length() <= 80 ? newsList6.get(0).getTxtContent() : newsList6.get(0).getTxtContent().substring(0, 80)%>...
							</p>
						</div>
						<div class="mastercont">
							<ul>
								<%
									for (int i = 1; i <= 5 && i < newsList6.size(); i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList6.get(i).getId()%>' title='<%=newsList6.get(i).getName()%>'> <%=newsList6.get(i).getName().length() <= 24 ? newsList6.get(i).getName() : newsList6.get(i).getName().substring(0, 24)%> </a></li>
								<%
									}
								%>
							</ul>
						</div>
					</div>
				</div>
				<div class="cont1_r">
					<div class="dialogue">
						<div class="cont1r_title">
							<span class="font_title">教育</span>科技 <a target="_blank" href="MorePage.jsp?id=14" class="a3"><font class="font">more</font> </a>
						</div>
						<%
							List<News> newsList14 = service.getByTypeId(14);
						%>
						<div class="newsinfor">
							<h2>
								<a target="_blank" href='news/<%=newsList14.get(0).getId()%>' title='<%=newsList14.get(0).getName()%>'><%=newsList14.get(0).getName().length() < 19 ? newsList14.get(0).getName() : newsList14.get(0).getName().substring(0, 19)%></a>
							</h2>
							<p class="p1"><%=newsList14.get(0).getTxtContent().length() <= 78 ? newsList14.get(0).getTxtContent() : newsList14.get(0).getTxtContent().substring(0, 78)+"..."%>
							</p>
						</div>
						<div class="mastercont">
							<ul>
								<%
									for (int i = 1; i <= 5 && i < newsList12.size(); i++) {
								%>
								<li><a target="_blank" href='news/news.jsp?id=<%=newsList14.get(i).getId()%>' title='<%=newsList14.get(i).getName()%>'> <%=newsList14.get(i).getName().length() <= 24 ? newsList14.get(i).getName() : newsList14.get(i).getName().substring(0, 24)%> </a></li>
								<%
									}
								%>
							</ul>
						</div>
					</div>
					<div class="voting">
						<div class="voting_title">投票系统</div>
						<div class="voting_cont">
						<%
						TouPiaoServiceI tpService = new TouPiaoServiceImpl();
						TPiao tp = tpService.getOne(null);
						%>
							<h5><%=tp.getName() %></h5>
							<div class="voting_form">
							<%
								for(TPiaoOpt tpo : tp.getTp()) {
									%>
								<span id="toupiaoSpanId<%=tpo.getId() %>" style="color: red;"></span><input type="radio" name="toupiaoName" id="<%=tpo.getCount() %>" value='<%=tpo.getId() %>' class="radio" /> 
								<%=tpo.getName() %><br /> 
									<%
								}
							%>
								  <a href="javascript:void(0)" onClick="javascript:doToupiao();"> <img src="images/ggrww1_127.gif" /> </a> <a href="#" onclick="chakan1()"> <img style="display: none" src="images/ggrww1_129.gif" /> </a>
								  <script type="text/javascript">
								  	var tpStr = '<%= JSON.toJSONString(tp)%>';
								  	var falg = 0;
								  	var doToupiao = function() {
								  		if(falg > 0) {
								  			alert("您已经投了一票了！");
								  		}
								  		if($("input:checked").length == 1) {
								  			$.ajax({
												url : '${pageContext.request.contextPath}/touPiaoAction!doToupiao.action',
												data : {
													id : $("input:checked")[0].value
												},
												dataType : 'json'
											});
								  			falg++;
								  			var inps = $("input[type='radio']");
								  			var counts = 0;
								  			for(var i = 0; i < inps.length; i++) {
								  				counts = counts * 1 + inps[i].id * 1;
								  			}
								  			for(var i = 0; i < inps.length; i++) {
								  				var tpmstr = Math.round(inps[i].id*1/counts*100 )+'%&nbsp;';
								  				$('#toupiaoSpanId'+inps[i].value).html(tpmstr.length == 9 ? tpmstr : '&nbsp;'+tpmstr);
								  			}
								  		} else {
								  			alert("请选择要投票的选项！");
								  		}
								  	};
								  </script>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="foot">
		<div class="links">
			<span>友情链接：</span>
			<%
				LinkServiceI linkService = new LinkServiceImpl();
				List<Link> links = (ArrayList<Link>) linkService.get();
				for (int i = 0; i < links.size(); i++) {
			%>
			<a target="_blank" href='<%=links.get(i).getUrl()%>'><%=links.get(i).getName()%></a>
			<%
				if (i < links.size() - 1)
						out.print("|");
				}
			%>
		</div>
		<div class="copyright">
			<div class="company">主办单位：重庆行政公共人物杂志社</div>
			<div class="map">
				<a href="about.jsp?id=1">关于我们</a> | <a href="about.jsp?id=2">杂志简介</a> | <a href="about.jsp?id=3">广告刊例</a> | <a href="about.jsp?id=4">组织机构</a> | <a href="about.jsp?id=5">联系我们</a> | <a href="about.jsp?id=6">本网声明</a> | <a href="about.jsp?id=7">版权声明</a>
			</div>
			<p>
				Copyright &copy; 2008-2012 www.cqggrw.com All Rights Reserved 渝ICP备12001034号-1&nbsp;技术支持：<a href="http://www.cqgew.com">重庆政企网</a>
		</div>
	</div>
</body>
</html>
